package com.wdhcr.osspolicy.annotation;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.wdhcr.osspolicy.config.UrlConverterJsonSerializer;
import com.wdhcr.osspolicy.enums.UrlConverterType;

import java.lang.annotation.*;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@JacksonAnnotationsInside
@JsonSerialize(using = UrlConverterJsonSerializer.class)
public @interface OssConverterUrl {

    UrlConverterType type() default UrlConverterType.OSS;

}
